import { MockMethod } from 'vite-plugin-mock'

const data: MenuDataItem[] = [
  // 一级菜单
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-zujian',
    iconType: 1,
    menuId: 1,
    path: 'proComponents',
    redirect: '/proComponents/layout/waterMark',
    title: 'Pro组件',
    name: 'Pro组件',
    menuType: 'M',
    orderNum: '1',
    isFrame: '1',
    parentId: 0,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-iconset0335',
    iconType: 1,
    menuId: 15,
    path: 'proPage',
    title: 'Pro页面',
    name: 'Pro页面',
    menuType: 'M',
    orderNum: '1',
    isFrame: '1',
    parentId: 0,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-gerenziliao',
    iconType: 1,
    menuId: 2,
    path: 'account',
    title: '个人页',
    name: '个人页',
    menuType: 'M',
    orderNum: '2',
    isFrame: '1',
    parentId: 0,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-xitongpeizhi',
    iconType: 1,
    menuId: 10,
    path: 'system',
    title: '系统配置',
    name: '系统配置',
    menuType: 'M',
    orderNum: '3',
    isFrame: '1',
    parentId: 0,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  // 二级菜单
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-layout',
    iconType: 1,
    menuId: 13,
    path: 'layout',
    redirect: '/proComponents/layout/waterMark',
    title: '布局',
    name: '布局',
    menuType: 'M',
    orderNum: '1',
    isFrame: '1',
    parentId: 1,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-17',
    iconType: 1,
    menuId: 39,
    path: 'dataEntry',
    title: '数据录入',
    name: '数据录入',
    menuType: 'M',
    orderNum: '2',
    isFrame: '1',
    parentId: 1,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-shuju',
    iconType: 1,
    menuId: 3,
    path: 'dataDisplay',
    title: '数据展示',
    name: '数据展示',
    menuType: 'M',
    orderNum: '3',
    isFrame: '1',
    parentId: 1,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-tongyonggongneng',
    iconType: 1,
    menuId: 4,
    path: 'universal',
    title: '通用',
    name: '通用',
    menuType: 'M',
    orderNum: '4',
    isFrame: '1',
    parentId: 1,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-biaodan',
    iconType: 1,
    menuId: 16,
    path: 'form',
    title: '表单页',
    name: '表单页',
    menuType: 'M',
    orderNum: '1',
    isFrame: '1',
    parentId: 15,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-biaoge',
    iconType: 1,
    menuId: 20,
    path: 'list',
    title: '列表页',
    name: '列表页',
    menuType: 'M',
    orderNum: '2',
    isFrame: '1',
    parentId: 15,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-xiangqing',
    iconType: 1,
    menuId: 25,
    path: 'profile',
    title: '详情页',
    name: '详情页',
    menuType: 'M',
    orderNum: '3',
    isFrame: '1',
    parentId: 15,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-jieguoye',
    iconType: 1,
    menuId: 28,
    path: 'result',
    title: '结果页',
    name: '结果页',
    menuType: 'M',
    orderNum: '4',
    isFrame: '1',
    parentId: 15,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-yichangguanli',
    iconType: 1,
    menuId: 31,
    path: 'exception',
    title: '异常页',
    name: '异常页',
    menuType: 'M',
    orderNum: '5',
    isFrame: '1',
    parentId: 15,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    component: 'PageView',
    children: [],
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-waibushuju',
    iconType: 1,
    menuId: 41,
    path: 'webIframe',
    title: '外部页面',
    name: '外部页面',
    menuType: 'M',
    orderNum: '7',
    isFrame: '1',
    parentId: 15,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'account/center/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 5,
    icon: 'gx-gerenzhongxin2',
    iconType: 1,
    path: 'center',
    title: '个人中心',
    name: '个人中心',
    menuType: 'C',
    orderNum: '1',
    isFrame: '1',
    parentId: 2,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'account/settings/index',
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-gerenshezhi',
    iconType: 1,
    menuId: 37,
    path: 'settings',
    title: '个人设置',
    name: '个人设置',
    menuType: 'C',
    orderNum: '2',
    isFrame: '1',
    parentId: 2,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'system/menu/index',
    createTime: '2020-06-30 22:48:57',
    icon: 'gx-a-zu5',
    iconType: 1,
    menuId: 11,
    path: 'menu',
    title: '菜单管理',
    name: '菜单管理',
    menuType: 'C',
    orderNum: '7',
    isFrame: '1',
    parentId: 10,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  // 三级菜单
  {
    children: [],
    component: 'proComponents/dataDisplay/proTable/index',
    createTime: '2020-06-30 22:48:57',
    tagFixed: '0',
    menuId: 6,
    path: 'proTable',
    title: '高级表格',
    name: '高级表格',
    menuType: 'C',
    orderNum: '1',
    isFrame: '1',
    parentId: 3,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proComponents/universal/proSkeleton/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 8,
    path: 'proSkeleton',
    title: '骨架屏',
    name: '骨架屏',
    menuType: 'C',
    orderNum: '1',
    isFrame: '1',
    parentId: 4,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proComponents/universal/Media/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 49,
    path: 'media',
    title: '媒体',
    name: '媒体',
    menuType: 'C',
    orderNum: '2',
    isFrame: '1',
    parentId: 4,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proComponents/universal/Image/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 44,
    path: 'image',
    title: '图片',
    name: '图片',
    menuType: 'C',
    orderNum: '3',
    isFrame: '1',
    parentId: 4,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proComponents/layout/waterMark/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 14,
    path: 'waterMark',
    title: '水印组件',
    name: '水印组件',
    menuType: 'C',
    orderNum: '1',
    isFrame: '1',
    parentId: 13,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proComponents/layout/card/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 38,
    path: 'card',
    title: '高级卡片',
    name: '高级卡片',
    menuType: 'C',
    orderNum: '2',
    isFrame: '1',
    parentId: 13,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proComponents/dataEntry/proUpload/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 45,
    path: 'proUpload',
    title: '高级上传',
    name: '高级上传',
    menuType: 'C',
    orderNum: '2',
    isFrame: '1',
    parentId: 39,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proComponents/dataEntry/proEditor/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 48,
    path: 'proEditor',
    title: '高级富文本',
    name: '高级富文本',
    menuType: 'C',
    orderNum: '3',
    isFrame: '1',
    parentId: 39,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/form/basicForm/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 17,
    path: 'basicForm',
    title: '基础表单',
    name: '基础表单',
    menuType: 'C',
    orderNum: '1',
    isFrame: '1',
    parentId: 16,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/form/stepForm/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 18,
    path: 'stepForm',
    title: '分布表单',
    name: '分布表单',
    menuType: 'C',
    orderNum: '2',
    isFrame: '1',
    parentId: 16,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/form/advancedForm/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 19,
    path: 'advancedForm',
    title: '组合表单',
    name: '组合表单',
    menuType: 'C',
    orderNum: '2',
    isFrame: '1',
    parentId: 16,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/list/search/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 21,
    path: 'searchList',
    title: '搜索列表',
    name: '搜索列表',
    menuType: 'C',
    orderNum: '1',
    isFrame: '1',
    parentId: 20,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/list/tableList/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 22,
    path: 'tableList',
    title: '查询表格',
    name: '查询表格',
    menuType: 'C',
    orderNum: '2',
    isFrame: '1',
    parentId: 20,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/list/basicList/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 23,
    path: 'basicList',
    title: '标准列表',
    name: '标准列表',
    menuType: 'C',
    orderNum: '3',
    isFrame: '1',
    parentId: 20,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/list/cardList/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 24,
    path: 'cardList',
    title: '卡片列表',
    name: '卡片列表',
    menuType: 'C',
    orderNum: '4',
    isFrame: '1',
    parentId: 20,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/profile/basic/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 26,
    path: 'profileBasic',
    title: '基础详情页',
    name: '基础详情页',
    menuType: 'C',
    orderNum: '1',
    isFrame: '1',
    parentId: 25,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/profile/advanced/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 27,
    path: 'advanced',
    title: '高级详情页',
    name: '高级详情页',
    menuType: 'C',
    orderNum: '2',
    isFrame: '1',
    parentId: 25,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/result/success/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 29,
    path: 'success',
    title: '成功页',
    name: '成功页',
    menuType: 'C',
    orderNum: '1',
    isFrame: '1',
    parentId: 28,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/result/fail/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 30,
    path: 'fail',
    title: '失败页',
    name: '失败页',
    menuType: 'C',
    orderNum: '2',
    isFrame: '1',
    parentId: 28,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/exception/403/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 32,
    path: '403',
    title: '403',
    name: '403',
    menuType: 'C',
    orderNum: '1',
    isFrame: '1',
    parentId: 31,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/exception/404/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 33,
    path: '404',
    title: '404',
    name: '404',
    menuType: 'C',
    orderNum: '2',
    isFrame: '1',
    parentId: 31,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'proPages/exception/500/index',
    createTime: '2020-06-30 22:48:57',
    menuId: 34,
    path: '500',
    title: '500',
    name: '500',
    menuType: 'C',
    orderNum: '3',
    isFrame: '1',
    parentId: 31,
    target: '',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'IframeView',
    createTime: '2020-06-30 22:48:57',
    menuId: 42,
    title: 'antVue文档(内嵌)',
    name: 'antVue文档(内嵌)',
    menuType: 'C',
    orderNum: '1',
    isFrame: '0',
    parentId: 41,
    path: 'antVue',
    target: 'https://next.antdv.com/components/overview-cn/',
    hidden: false,
    outLinkType: 0
  },
  {
    children: [],
    component: 'IframeView',
    createTime: '2020-06-30 22:48:57',
    menuId: 43,
    title: 'procomponents(外链)',
    name: 'procomponents(外链)',
    menuType: 'C',
    orderNum: '2',
    isFrame: '0',
    parentId: 41,
    target: 'https://procomponents.ant.design/',
    hidden: false,
    outLinkType: 1
  }
]

export default [
  {
    url: '/mock-server/menu/navigate',
    method: 'post',
    response: () => {
      return {
        code: 200,
        msg: 'success',
        data
      }
    }
  }
] as MockMethod[]
